CVE-2023-54178
of: unittest: fix null pointer dereferencing in of_unittest_find_node_by_name()
Description
In the Linux kernel, the following vulnerability has been resolved: of: unittest: fix null pointer dereferencing in of_unittest_find_node_by_name() when kmalloc() fail to allocate memory in kasprintf(), name or full_name will be NULL, strcmp() will cause null pointer dereference.
INFO
Published Date :
Dec. 30, 2025, 1:16 p.m.
Last Modified :
Dec. 30, 2025, 1:16 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products
The following products are affected by CVE-2023-54178
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
Solution
- Ensure memory allocation checks are performed.
- Handle NULL pointers gracefully after memory allocation.
- Validate string operations on potentially NULL values.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-54178.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-54178 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-54178
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-54178 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-54178 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Dec. 30, 2025
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: of: unittest: fix null pointer dereferencing in of_unittest_find_node_by_name() when kmalloc() fail to allocate memory in kasprintf(), name or full_name will be NULL, strcmp() will cause null pointer dereference. Added Reference https://git.kernel.org/stable/c/0b7d715511915a1b39f5fdcbe57a7922dfd66513 Added Reference https://git.kernel.org/stable/c/2dd8ee9de71ad8447f8459fb01dade7f6c7132da Added Reference https://git.kernel.org/stable/c/43cc228099c514467b8074d7ede6673cef9f33b9 Added Reference https://git.kernel.org/stable/c/c364fa869b33ca42a263bf91c22fce7e6c61d479 Added Reference https://git.kernel.org/stable/c/c74ae8124f9687062dd99858f34c9d027ddd73da Added Reference https://git.kernel.org/stable/c/d6ce4f0ea19c32f10867ed93d8386924326ab474 Added Reference https://git.kernel.org/stable/c/dadf0d0dfcc81cdcb27ba5426676d13a9e4fb925 Added Reference https://git.kernel.org/stable/c/ea5bc6f5aa099e3e84d037282836234ad77cba88 Added Reference https://git.kernel.org/stable/c/f41c65f8d05be734898cbe72af59a401b97d298a